package com.probox.common.core.enums;

/**
 * 预约来源
 */
public enum SourcePlatformEnum {
    applets("applets", "小程序"),
    meituan("meituan", "美团"),
    dithering("dithering", "抖音");


    private SourcePlatformEnum(String k, String v) {
        this.setKey(k);
        this.setValue(v);
    }

    public static String getNameByKey(String key) {
        String rst = "";
        for (SourcePlatformEnum oe : SourcePlatformEnum.values()) {
            if (oe.getKey().equals(key)) {
                rst = oe.getValue();
            }
        }
        return rst;
    }

    private String key;
    private String value;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
